<h1>Listing card_scores</h1>

<table>
  <tr>
    <th>User</th>
    <th>Flashcard</th>
    <th>Times correct</th>
    <th>Times incorrect</th>
    <th>Last three</th>
  </tr>

<% for card_score in @card_scores %>
  <tr>
    <td><%=h card_score.user %></td>
    <td><%=h card_score.flashcard %></td>
    <td><%=h card_score.times_correct %></td>
    <td><%=h card_score.times_incorrect %></td>
    <td><%=h card_score.last_three %></td>
    <td><%= link_to 'Show', card_score %></td>
    <td><%= link_to 'Edit', edit_card_score_path(card_score) %></td>
    <td><%= link_to 'Destroy', card_score, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New card_score', new_card_score_path %>
